package com.sdk.bigdata.model;


import java.util.Map;

public abstract class BaseModel {
    private String type;
    private Long time;
    private Map<String,Object> properties;

    public BaseModel(String type,Map<String, Object> properties) {
        this.type = type;
        this.time = System.currentTimeMillis();
        this.properties = properties;
    }

    public BaseModel(){}

    public abstract void validAttribute();

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    public Map<String, Object> getProperties() {
        return properties;
    }

    public void setProperties(Map<String, Object> properties) {
        this.properties = properties;
    }

}
